﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BallData
{
    public class CompanyItem
    {
        public String cId;
        public String cType;
        public String cnName;
        public String trName;
        public String enName;
        public String cnCtName;
        public String trCtName;
        public String enCtName;
        public CompanyItem(String infostr)
        {
            String[] infoArr = infostr.Split(OddsUntil.SplitColumn);

            if (infoArr.Length == 8)
            {
                this.cId = infoArr[0];
                this.cType = infoArr[1];
                this.cnName = infoArr[2];
                this.trName = infoArr[3];
                this.enName = infoArr[4];
                this.cnCtName = infoArr[5];
                this.trCtName = infoArr[6];
                this.enCtName = infoArr[7];
            }
            else
            {
                this.cId = infoArr[0];
                this.cType = infoArr[1];
                this.cnName = infoArr[2];
                this.trName = infoArr[3];
                this.enName = infoArr[4];
                //this.cnCtName = infoArr[5];
                //this.trCtName = infoArr[6];
                //this.enCtName = infoArr[7];
            }
            
        }
    }
}
